package com.docHunt.BO.BOImpl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.docHunt.BO.DoctorBO;
import com.docHunt.DAO.DoctorDAO;
import com.docHunt.DTO.DoctorDTO;

public class DoctorBOImpl implements DoctorBO {

	private Logger logger = Logger.getLogger(DoctorBOImpl.class);

	@Autowired
	DoctorDAO doctorDAO;
	
	public boolean addDoctorInfo(DoctorDTO doctorDTO) {

		try {
	
			return doctorDAO.addDoctorInfo(doctorDTO);
			
		} catch (Exception e) {
			logger.error("DoctorBOImpl :: Exception in method addDoctorInfo: ", e);
			return false;
		}
	}
}
